import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'

Vue.use(Vuex);

// 定义vuex
const state = {
    openid:"",//"otpWPs72-g3Heyl7vd_dH0LN4BRwxx", //内网测试写死
    // openid:"oUIBZ0VrWs1lS9QdjVm7fOATJ678",
    isLoading: false,
    isBind: false,
    comanyList: null//本应是array，特殊null类型为做判断
}

export default new Vuex.Store({
    state,
    mutations,
    actions
})
//我们规定每个模块一个文件夹  下面有4个文件 按这个标准写